package keye.document_manage.dao.sqlserver;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import keye.document_manage.domain.TableInterfaceListView;
import keye.document_manage.domain.TableInterfaceListViewKey;

public interface TableInterfaceListViewDao {
    int deleteByPrimaryKey(TableInterfaceListViewKey key);

    int insert(TableInterfaceListView record);

    int insertSelective(TableInterfaceListView record);

    TableInterfaceListView selectByPrimaryKey(TableInterfaceListViewKey key);

    int updateByPrimaryKeySelective(TableInterfaceListView record);

    int updateByPrimaryKey(TableInterfaceListView record);
    
    @Select("select * from table_interface_list_view where table_name in (${tableName})")
    List<HashMap<String, Object>> getAllByTableName(@Param("tableName") String tableName);
}